package com.hue.gulimail.gulimailauth.feign;

import com.hue.common.utils.R;
import com.hue.gulimail.gulimailauth.vo.LoginVo;
import com.hue.gulimail.gulimailauth.vo.RegisterVo;
import com.hue.gulimail.gulimailauth.vo.SocialUserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: 姚凤桥
 * @Date: 2021/11/25 22:06
 * @Description: 会员服务
 */
@FeignClient("gulimail-member")
public interface MemberFeignService {
    @PostMapping("/gulimailmember/member/register")
    public R register(@RequestBody RegisterVo registerVo);

    @PostMapping("/gulimailmember/member/login")
    public R login(@RequestBody LoginVo loginVo);

    @PostMapping("/gulimailmember/member/social/login")
    public R socialLogin(@RequestBody SocialUserVo socialUserVo);
}
